package dto

import (
	"invitation/internal/http/utils"
	"strings"
)

type FirstTimePayload struct {
	TeacherID   string `json:"teacher_id" `
	Name        string `json:"name" `
	Desc        string `json:"desc" `
	PostportUrl string `json:"postport_url" `
}

func (fp *FirstTimePayload) Sanitize() {
	fp.TeacherID = strings.TrimSpace(fp.TeacherID)
	fp.Name = strings.TrimSpace(fp.Name)
	fp.Desc = utils.CleanWhitespace(fp.Desc)
	fp.PostportUrl = strings.TrimSpace(fp.PostportUrl)
}
